package com.ushine.web.communication.signature.annotation;

import java.lang.annotation.*;

/**
 * @Author: yls
 * @Date: 2021/12/20 14:29
 * @Description:
 * @Version 1.0
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Signature {
    /**
     * 按照order值排序
     */
    String ORDER_SORT = "ORDER_SORT";
    /**
     * 字典序排序
     */
    String ALPHA_SORT = "ALPHA_SORT";

    /**
     * 允许重复请求
     */
    boolean resubmit() default false;

    String sort() default Signature.ALPHA_SORT;
}
